From 6f201dd3b4b1b060d15610824da19791c1d02640 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Tue, 14 Jun 2022 15:41:24 +0100 Subject: [PATCH] Link against libatomic for TBB check to prevent FTBFS on armel. Forwarded: https://github.com/Macaulay2/M2/pull/2528 Last-Update: 2022-06-14 Gbp-Pq: Name libatomic.patch --- M2/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/M2/configure.ac b/M2/configure.ac index 77bbe9e..43b42f8 100644 --- a/M2/configure.ac +++ b/M2/configure.ac @@ -404,7 +404,8 @@ then AC_DEFINE(WITH_TBB,1,[whether the tbb library has been enabled by the build AC_SUBST(LIBTBB) dnl LIBTBB is usually set to -ltbb AC_LANG(C++) AC_CHECK_HEADER(tbb/tbb.h, - [AC_SEARCH_LIBS(TBB_runtime_interface_version,"tbb", + [LIBS="$LIBS -latomic" + AC_SEARCH_LIBS(TBB_runtime_interface_version,"tbb", LIBTBB=$ac_cv_search_TBB_runtime_interface_version, [AC_MSG_ERROR([tbb library not found])])], [AC_MSG_ERROR([tbb include file (tbb.h) not found])]) -- 2.30.2